import request from "@/utils/request";
// 能耗同比分析

// 统计报表同比分析列表 错误码20030
export function list(params) {
    return request({
        url: "/parkManage/device/getDeviceRoomList",
        method: "get",
        params,
    });
}

// 新增 错误码302003
export function add(data) {
    return request({
        url: "/parkManage/device/add",
        method: "post",
        data
    });
}

// 修改 错误码302004
export function edit(data) {
    return request({
        url: "/parkManage/device/update",
        method: "put",
        data
    });
}

// 详情 错误码302005
export function detail(id) {
    return request({
        url: `/parkManage/device/${id}`,
        method: "get",
    });
}

// 删除 错误码302005
export function delDevice(id) {
    return request({
        url: `/parkManage/device/delete/${id}`,
        method: "DELETE",
    });
}
